package com.gouying.design.patterns.factory.simple;

public class TransportFactory {

    public static Transport createTransport(String type){
        if("car".equals(type)){
            return  new Car();
        }else if("lv".equals(type)){
            return  new Lv();
        }
        return null;
    }
}
